<?php



class CountriesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CountriesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('countries');
		$tMap->setPhpName('Countries');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('COUNTRIES_ID', 'CountriesId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COUNTRIES_NAME', 'CountriesName', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('COUNTRIES_ISO_CODE_2', 'CountriesIsoCode2', 'string', CreoleTypes::CHAR, true, 2);

		$tMap->addColumn('COUNTRIES_ISO_CODE_3', 'CountriesIsoCode3', 'string', CreoleTypes::CHAR, true, 3);

		$tMap->addColumn('ADDRESS_FORMAT_ID', 'AddressFormatId', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 